package com.kan.awaits.mongo.annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 
 * @author Elva
 * @date 2011-4-14
 * @version 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface Capped
{
	public final static long DEFAULT_MAX_VALUE = -1;

	long size() default 1024 * 1024;// collection size (in bytes),default 1M

	long max() default DEFAULT_MAX_VALUE;// int: max number of documents,defaults to unlimited
}
